#pragma once
#include "Archivo.h"
#include "MasterClass.h"
#include "FormProfesores.h"
#include "FormAulas.h"
#include "FormHorario.h"

namespace BuildTimeUserInterface {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for FormPrincipal
	/// </summary>
	public ref class FormPrincipal : public System::Windows::Forms::Form
	{
	private:
		MasterClass *objMasterClass;
	public:
		FormPrincipal(void)
		{
			InitializeComponent();
			objMasterClass= new MasterClass();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~FormPrincipal()
		{
			if (components)
			{
				delete objMasterClass;
				delete components;
			}
		}

	private: System::Windows::Forms::OpenFileDialog^  fdArchivo;
	private: System::Windows::Forms::Button^  btnProfesores;
	private: System::Windows::Forms::Button^  btnAula;
	private: System::Windows::Forms::Button^  btnHorario;
	private: System::Windows::Forms::Panel^  pMenu;
	private: System::Windows::Forms::ListBox^  lbProfesores;
	private: System::Windows::Forms::ListBox^  lbAulas;
	private: System::Windows::Forms::Label^  lblProfesores;
	private: System::Windows::Forms::Label^  lblAulas;
	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(FormPrincipal::typeid));
			this->fdArchivo = (gcnew System::Windows::Forms::OpenFileDialog());
			this->btnProfesores = (gcnew System::Windows::Forms::Button());
			this->btnAula = (gcnew System::Windows::Forms::Button());
			this->btnHorario = (gcnew System::Windows::Forms::Button());
			this->pMenu = (gcnew System::Windows::Forms::Panel());
			this->lbProfesores = (gcnew System::Windows::Forms::ListBox());
			this->lbAulas = (gcnew System::Windows::Forms::ListBox());
			this->lblProfesores = (gcnew System::Windows::Forms::Label());
			this->lblAulas = (gcnew System::Windows::Forms::Label());
			this->pMenu->SuspendLayout();
			this->SuspendLayout();
			// 
			// fdArchivo
			// 
			this->fdArchivo->FileName = L"fdArchivo";
			// 
			// btnProfesores
			// 
			this->btnProfesores->BackColor = System::Drawing::Color::White;
			this->btnProfesores->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnProfesores.BackgroundImage")));
			this->btnProfesores->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->btnProfesores->Location = System::Drawing::Point(3, 4);
			this->btnProfesores->Name = L"btnProfesores";
			this->btnProfesores->Size = System::Drawing::Size(50, 50);
			this->btnProfesores->TabIndex = 4;
			this->btnProfesores->UseVisualStyleBackColor = false;
			this->btnProfesores->Click += gcnew System::EventHandler(this, &FormPrincipal::btnProfesores_Click);
			// 
			// btnAula
			// 
			this->btnAula->BackColor = System::Drawing::Color::White;
			this->btnAula->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnAula.BackgroundImage")));
			this->btnAula->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->btnAula->Location = System::Drawing::Point(59, 4);
			this->btnAula->Name = L"btnAula";
			this->btnAula->Size = System::Drawing::Size(50, 50);
			this->btnAula->TabIndex = 5;
			this->btnAula->UseVisualStyleBackColor = false;
			this->btnAula->Click += gcnew System::EventHandler(this, &FormPrincipal::btnAula_Click);
			// 
			// btnHorario
			// 
			this->btnHorario->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"btnHorario.BackgroundImage")));
			this->btnHorario->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->btnHorario->Location = System::Drawing::Point(537, 4);
			this->btnHorario->Name = L"btnHorario";
			this->btnHorario->Size = System::Drawing::Size(50, 50);
			this->btnHorario->TabIndex = 6;
			this->btnHorario->UseVisualStyleBackColor = true;
			this->btnHorario->Click += gcnew System::EventHandler(this, &FormPrincipal::btnHorario_Click);
			// 
			// pMenu
			// 
			this->pMenu->BackColor = System::Drawing::Color::Lavender;
			this->pMenu->Controls->Add(this->btnProfesores);
			this->pMenu->Controls->Add(this->btnHorario);
			this->pMenu->Controls->Add(this->btnAula);
			this->pMenu->Location = System::Drawing::Point(-1, 0);
			this->pMenu->Name = L"pMenu";
			this->pMenu->Size = System::Drawing::Size(590, 61);
			this->pMenu->TabIndex = 7;
			// 
			// lbProfesores
			// 
			this->lbProfesores->FormattingEnabled = true;
			this->lbProfesores->ItemHeight = 15;
			this->lbProfesores->Location = System::Drawing::Point(12, 104);
			this->lbProfesores->Name = L"lbProfesores";
			this->lbProfesores->Size = System::Drawing::Size(261, 364);
			this->lbProfesores->TabIndex = 8;
			// 
			// lbAulas
			// 
			this->lbAulas->FormattingEnabled = true;
			this->lbAulas->ItemHeight = 15;
			this->lbAulas->Location = System::Drawing::Point(314, 104);
			this->lbAulas->Name = L"lbAulas";
			this->lbAulas->Size = System::Drawing::Size(261, 364);
			this->lbAulas->TabIndex = 9;
			// 
			// lblProfesores
			// 
			this->lblProfesores->AutoSize = true;
			this->lblProfesores->Location = System::Drawing::Point(13, 85);
			this->lblProfesores->Name = L"lblProfesores";
			this->lblProfesores->Size = System::Drawing::Size(129, 15);
			this->lblProfesores->TabIndex = 10;
			this->lblProfesores->Text = L"Listado de Profesores:";
			// 
			// lblAulas
			// 
			this->lblAulas->AutoSize = true;
			this->lblAulas->Location = System::Drawing::Point(311, 85);
			this->lblAulas->Name = L"lblAulas";
			this->lblAulas->Size = System::Drawing::Size(99, 15);
			this->lblAulas->TabIndex = 11;
			this->lblAulas->Text = L"Listado de Aulas:";
			// 
			// FormPrincipal
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(7, 15);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackColor = System::Drawing::Color::AliceBlue;
			this->ClientSize = System::Drawing::Size(587, 476);
			this->Controls->Add(this->lblAulas);
			this->Controls->Add(this->lblProfesores);
			this->Controls->Add(this->lbAulas);
			this->Controls->Add(this->lbProfesores);
			this->Controls->Add(this->pMenu);
			this->Font = (gcnew System::Drawing::Font(L"Calibri", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
			this->MaximizeBox = false;
			this->Name = L"FormPrincipal";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
			this->Text = L"Build Time";
			this->pMenu->ResumeLayout(false);
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
private: System::Void btnProfesores_Click(System::Object^  sender, System::EventArgs^  e)
		 {
			 FormProfesores ^objFormProfesores= gcnew FormProfesores();
			 objFormProfesores->lbProfesores=lbProfesores;
			 objFormProfesores->objMasterClass=objMasterClass;
			 objFormProfesores->Show();
		 }
private: System::Void btnAula_Click(System::Object^  sender, System::EventArgs^  e)
		 {
			FormAulas ^objFormAulas= gcnew FormAulas();
			objFormAulas->lbAulas=lbAulas;
			objFormAulas->objMasterClass=objMasterClass;
			objFormAulas->Show();
		 }
private: System::Void btnHorario_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			FormHorario ^objFormHorario=gcnew FormHorario();
			objFormHorario->objMasterClass=objMasterClass;
			objFormHorario->Show();
		 }
};
}
